
<form id="form" action="{:url('manage.gift/add')}">
<div class="titlebar fn-clear">
    <div class="fn-left"><i class="iconfont icon-my_icon"></i><span class="fn-fb">规则信息</span></span></div>    
</div>
<table class="formtable">
    <tr>
        <th>买单次数:</th>
        <td>
            <input class="input" datatype="n" type="text" name="pay_num" value="0" />
            <span class="gray fbn-f12">0 不限制,付款得到次数后赠送某礼品</span>
        </td>
    </tr>
    <tr>
        <th>付款额度:</th>
        <td><input class="input" datatype="npot" type="text" name="pay_amount" value="0" />
            <span class="gray fbn-f12">0 不限制,付款得到指定额度后赠送某礼品</span>
        </td>
    </tr>
    <tr><th>赠送对象:</th><td>
        <span class="badge bg-blue"><input class="radio" type="radio" name="types" value="0" checked="true"> 所有用户</span>
        <span class="badge bg-yellow"><input class="radio" type="radio" name="types" value="1"> 会员会员</span>
    </td></tr>
    <tr>
        <th>赠送优惠券:</th>
        <td><input url="{:url('allwin/Coupon/selectid')}" readonly="true" class="input readonly selectid" datatype="n" type="text" name="coupon_id" id="coupon_id"  value="0" />
            <span class="gray fbn-f12">选择优惠券ID,必须是禁止修改、所有通道都禁止领取的优惠券</span>
        </td>
    </tr>
</table>
<div class="titlebar fn-clear">
    <div class="fn-left"><i class="iconfont icon-my_icon"></i><span class="fn-fb">活动信息</span></span></div>    
</div>
<table class="formtable">
    <tr>
        <th>开始时间:</th>
        <td><input readonly="true" class="input readonly ui-time" datatype="date" type="text" name="start_time" value="" /> - <input readonly="true" class="input readonly ui-time" datatype="date" type="text" name="end_time" value="" /></td>
    </tr>
    <tr>
        <th>活动名称:</th>
        <td><input class="input w500" datatype="*" type="text" name="title" value="" /></td>
    </tr>
    <tr>
        <th>分享主图:</th>
        <td><input id="share_img" readonly class="input w500 ui-upload readonly" datatype="*" type="text" name="share_img" value="" /></td>
    </tr>
    <tr>
        <th>分享标题:</th>
        <td><input class="input w500" datatype="*" type="text" name="share_title" value="" /></td>
    </tr>
    <tr>
        <th>分享内容:</th>
        <td><input class="input w500" datatype="*" type="text" name="share_text" value="" /></td>
    </tr>
    <tr><th>活动介绍:</th><td><textarea name="note" class="textarea ui-editor w400"></textarea></td></tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</div>
</form>
<script type="text/javascript">
Do('base','layer','form','editor','date',function () {
    $('#form').isForm({'upload':'{:url("system/passport.common/upload")}'});
    $(".selectid").win();
})
//添加图片
function share_img(value){
    $("#share_img").val(value);
}
</script>